﻿@model LynxWiki.ViewModels.TopicDisplayName

<span id="TopicTip" class="TopicTip" ></span>
@using (Html.BeginForm("Page", "WikiTopic", FormMethod.Post, new { DefaultButton = "SubmitTopic", id = "TopicForm", novalidate = "novalidate" })) {
    <div id="TopicBar" title="Click here to quickly jump to or create a topic" class="TopicBar" >
    <div  id="StaticTopicBar"  class="StaticTopicBar" style="display: block"><h1>@Model.DisplayName</h1></div>
    <div id="DynamicTopicBar" class="DynamicTopicBar" style="display: block">
    <input id="TopicBarInputBox" title="Enter a topic here to go to or create" class="QuickLinkInput" type="text"  name="TopicBarInputBox" />
    <input type="hidden" id="PagePath" name="PagePath" value="@ViewBag.PagePath" />
    <input type="submit" id="SubmitTopic" name="SubmitTopic" value="Submit" />
    <input type="button" id="CancelDynamicTopicBar" value="Cancel" />
    <div class="DynamicTopicBarHelp">Enter a topic name to show or a new topic name to create; then press Enter</div>
    </div></div>
}

